package com.kehutong.payment.entity;

import org.coraframework.orm.Entity;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;
import org.coraframework.orm.annotation.UnSave;
import org.coraframework.orm.util.IDType;

/**
 * <pre>商户设置</pre>
 * 
 * @author liuzhen (liuxing521a@163.com)
 * @createTime 2020年5月21日 上午9:35:38
 */
@Table(value="t_auth_merchant", comment="商户设置", idType = IDType.TIMESTAMP)
public class MerchantSetting extends Entity {

	private static final long serialVersionUID = -2154984941320852947L;

	protected MerchantSetting(String id) {
		super(id);
	}

	@Column(comment = "父商户Id")
	private String pid;
	
	@Column(comment = "商户Id")
	private String mchId;
	
	@Column(length=64, comment = "商户名称")
	private String mchName;
	
	@Column(length = 64, comment = "商户密约")
	private String mchSecret;

	@Column(length = 64, comment = "商户appId")
	private String appId;

	@Column(comment = "支付文件")
	private String mchFileId;

	@Column(comment = "是否服务商")
	private boolean provider;

	@Column(comment="企业编号")
	private String companyNo;

	@Column(length=64, comment="企业名称")
	private String companyName;

	@Column(comment="逻辑删除")
	private boolean deleted;

	@Column(comment = "公司默认商户")
	private boolean merchantDefault;

	@Column(comment = "审核状态")
	private boolean auditStatus;

	@UnSave
    private String pname;
	
	public String getMchId() {
		return mchId;
	}

	public void setMchId(String mchId) {
		this.mchId = mchId;
	}

	public String getMchSecret() {
		return mchSecret;
	}

	public void setMchSecret(String mchSecret) {
		this.mchSecret = mchSecret;
	}

	public String getMchFileId() {
		return mchFileId;
	}

	public void setMchFileId(String mchFileId) {
		this.mchFileId = mchFileId;
	}

	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}

	public String getMchName() {
		return mchName;
	}

	public void setMchName(String mchName) {
		this.mchName = mchName;
	}

	public boolean isProvider() {
		return provider;
	}

	public void setProvider(boolean provider) {
		this.provider = provider;
	}

	public String getPname() {
		return pname;
	}

	public void setPname(String pname) {
		this.pname = pname;
	}

	public String getAppId() {
		return appId;
	}

	public void setAppId(String appId) {
		this.appId = appId;
	}

	public String getCompanyNo() {
		return companyNo;
	}

	public void setCompanyNo(String companyNo) {
		this.companyNo = companyNo;
	}

	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	public boolean isDeleted() {
		return deleted;
	}

	public void setDeleted(boolean deleted) {
		this.deleted = deleted;
	}

	public boolean isMerchantDefault() {
		return merchantDefault;
	}

	public void setMerchantDefault(boolean merchantDefault) {
		this.merchantDefault = merchantDefault;
	}

	public boolean isAuditStatus() {
		return auditStatus;
	}

	public void setAuditStatus(boolean auditStatus) {
		this.auditStatus = auditStatus;
	}
}
